<?php /* Smarty version Smarty-3.1.8, created on 2012-03-22 19:28:35
         compiled from "./templates/register.tpl" */ ?>
<?php /*%%SmartyHeaderCode:6547464994f5e7798437c11-44151501%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '3cbf1e8fe3fd40b5d5d98f1481941b0b65780f26' => 
    array (
      0 => './templates/register.tpl',
      1 => 1332282745,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '6547464994f5e7798437c11-44151501',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4f5e7798524299_62941344',
  'variables' => 
  array (
    'post' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4f5e7798524299_62941344')) {function content_4f5e7798524299_62941344($_smarty_tpl) {?><?php if (!is_callable('smarty_function_validate')) include '/home/FER/mg44268/public_html/smarty3/plugins/function.validate.php';
?><html>
    <head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<title>Terenac</title>
		<link rel="stylesheet" href="css/styleLogin.css" type="text/css" />
    </head>
    <body>
		<div class="page">
			<div class="header">
				<a href="index.html" id="logo"><img src="images/logo1.png" alt="Terenac"/></a>
                                <ul>
                                <li><a href="login.php">Login</a></li>
                                </ul>
			</div>
			<div class="body">
                            <h1>Registration</h1>
                            <form method="POST">
                            <table>
                                <tr id="height">
                                    <td>Username:</td>
                                    <td><input class="input" type="text" name="username1" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value['username1'], ENT_QUOTES, 'UTF-8', true);?>
"/>
                                        <?php echo smarty_function_validate(array('id'=>"usernameEmpty",'message'=>"Username cannot be empty"),$_smarty_tpl);?>

                                        <?php echo smarty_function_validate(array('id'=>"usernameExists",'message'=>"Username already exists"),$_smarty_tpl);?>
</td>            
                               </tr>
                               <tr id="height">
                                   <td>Password:</td> 
                                   <td><input class="input" type="password" name="pass"/>
                                    <?php echo smarty_function_validate(array('id'=>"passwordLength",'message'=>"Password is too short, minimum 4 characters required"),$_smarty_tpl);?>

                                    <?php echo smarty_function_validate(array('id'=>"passwordMatch",'message'=>"Passwords dont match"),$_smarty_tpl);?>
</td>
                               </tr> 
                               <tr id="height">
                                   <td>Password again:</td> 
                                   <td><input class="input" type="password" name="pass2"/></td>
                              </tr>
                                <tr id="height">
                                   <td>E-mail:</td> 
                                   <td><input class="input" type="text" name="email" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value['email'], ENT_QUOTES, 'UTF-8', true);?>
"/>
                                   <?php echo smarty_function_validate(array('id'=>"emailIsEmail",'message'=>"Please enter your email"),$_smarty_tpl);?>

                                   <?php echo smarty_function_validate(array('id'=>"emailExists",'message'=>"Email already exists"),$_smarty_tpl);?>
</td>
                              </tr>
                                <tr id="height">
                                   <td>Name:</td> 
                                   <td><input class="input" type="text" name="name" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
"/>
                                   <?php echo smarty_function_validate(array('id'=>"nameEmpty",'message'=>"Name cannot be empty"),$_smarty_tpl);?>
</td>
                              </tr>
                                <tr id="height">
                                   <td>Surname:</td> 
                                   <td><input class="input" type="text" name="surname" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value['surname'], ENT_QUOTES, 'UTF-8', true);?>
"/>
                                   <?php echo smarty_function_validate(array('id'=>"surnameEmpty",'message'=>"Surname cannot be empty"),$_smarty_tpl);?>
</td>
                              </tr>
                              <tr id="height"><td></td>
                                  <td id="centriranje"><input class="button" type="submit" value="Register"/></td>
                               </tr>
                                </table>
                            </form>
                        </div>
                        <div class="footer">
				<p class="paragraphcenter">&#169; Copyright &#169; 2012. Terenac all rights reserved</p>
			</div>
    </body>
</html><?php }} ?>